import React from "react";
import 'semantic-ui-css/semantic.min.css'
const Editor = (props) => {
    const { updateEntity } = props;
    return (
        <div className="ui form">
            <div className="field">
                <textarea 
                    rows="5" 
                    placeholder="写点东西"
                    // react 是非常接近原生js的框架
                    onInput= {(event) => {updateEntity(event)}}>
                </textarea>
            </div>
        </div>
    )
}

export default Editor;